const TMAP_KEY = "f3fdc7da7212f1cb10794d463f8aecae";
// 声明天地图秘钥
const Vmap = new ol.layer.Tile({
  title: "天地图-矢量图层",
  source: new ol.source.XYZ({
    url: `http://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${TMAP_KEY}`,
    crossOrigin: "Anonymous",
  }),
});
//天地图影响图层
const Rmap = new ol.layer.Tile({
    title: '天地图-影像图层',
    source: new ol.source.XYZ({
      url: `http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${TMAP_KEY}`,
      crossOrigin: 'Anonymous'
    })
  })
const MarkLayer = new ol.layer.Tile({
    title: '天地图-注记图层',
    source: new ol.source.XYZ({
      url: `http://t0.tianditu.gov.cn/cta_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${TMAP_KEY}`,
      crossOrigin: 'Anonymous'
    })
  })
const docLayer = new Zondy.Map.Doc("", "guanggu-doc", {
  ip: "localhost",
  port: "6163",
  crossOrigin: "Anonymous",
});
export { Vmap, Rmap,MarkLayer, docLayer };
